from fastapi import APIRouter

from ..config import settings
from .tags import router as tags_router
from .posts import router as posts_router
from .comments import router as comments_router
from .docs import custom_docs as custom_docs
from fastapi.responses import ORJSONResponse

router = APIRouter()


api_routers = APIRouter(prefix=settings.url_prefix)

api_routers.include_router(tags_router)
api_routers.include_router(posts_router)
api_routers.include_router(comments_router)

@api_routers.get("/")
async def index():
    return ORJSONResponse({"hello": "world"})

